I have inherited C code from Think C in the following form:
int somefunc(void) { ... } void freddy( void ) { int(*myfunc)(); myfunc = somefunc; . .. (*(myfunc))(); /* Invokes function "somefunc" */ . .}
This code runs fine under Think C. Will it always work OK under PowerPC or do I
need to use UPP's when calling code like this?
A As long as you know you are calling code of the same type, i.e., 68K code
calling 68K code, or PowerPC code calling PowerPC code, there is no need to go
through Mixed Mode because there is no ambiguity about the calling conventions.
C function pointers work just fine.